package cn.xej.health.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author xej
 */
@Controller
public class RouterController {

    @GetMapping("/login")
    public String login(){
        return "login";
    }

    @RequestMapping(value = {"/","/index"})
    public String index(){
//        return "redirect:http://localhost:88/api/user/list";
        return "index";
    }


    @RequestMapping("/user")
    public String user(){
        return "user";
    }
}
